package com.saturn.titan.core.rest;

/**
 * 提供 plugin rest 服务
 */
public enum PluginRestMethods implements RestMethod {

	GET_PLUGIN_UPDATEDATE("/plugin/manager/getPluginUpdateDate", "GET"),

	DOWNLOAD_FILE("/plugin/manager/downLoadFile", "GET"),
	
	GET_PARSER_FILE_MD5("/plugin/manager/getParserMD5", "GET"),
	
	IS_NEED_UPDATE("/plugin/manager/isNeedUpdate", "GET"),//是否需要更新插件判断
	
	HAS_UPDATE("/plugin/manager/hasUpdate", "GET"),//更新完后告诉插件更新已完成
	
	GET_ALL_PARSERFILE_NAME("/plugin/manager/getAllParserFileName", "GET"),
	
	FIND_ALL_PARSER("/plugin/manager/findAllParser", "GET");
	
	private String methodName;
	
	private String methodType;

	private PluginRestMethods(String methodName, String methodType) {
		this.methodName = methodName;
		this.methodType = methodType;
	}

	public String getMethodName() {
		return methodName;
	}

	public String getMethodType() {
		return methodType;
	}

}
